package practise.sort.javaSort;

import practise.sort.Person;

import java.util.Comparator;

/**
 * Created by richard on 5/6/14.
 */
public class PersonComparator implements Comparator<Person> {
    @Override
    public int compare(Person o1, Person o2) {
        return o1.getAge()-o2.getAge();
    }
}
